package com.team5101.configEntity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;


@Data
@Component
@ConfigurationProperties(prefix = "zk")
@PropertySource(value = "classpath:zk.properties", encoding = "utf-8", ignoreResourceNotFound = true)
public class ZooKeeperProperties {

    private String zkHost;

    private int port;
}
